package com.meshnetics.gb.util.formatters;

import com.meshnetics.gb.util.Conversions;

/**
 * Decimal unsigned byte formatter. Converts byte as unsigned byte to decimal string. For
 * example 0, 1, 10, 127, 128, 255
 *
 * @author Yury Aserchev (yaserchev@meshnetics.com)
 *         Date: 30.07.2007 13:06:05
 */
final class ByteFormatterUByte implements ByteFormatter{
    public String format(byte b) {
        return String.valueOf(Conversions.expandByteToInt(b));
    }
}
